package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffCopywritingDto
 * @使用场景
 */
@Data
public class BffCopywritingDto implements Serializable {

    /**
     * 大屏文案标识
     */
    @ApiModelProperty("大屏文案标识")
    private String largeScreenCopywritingCode;

    /**
     * 大屏文案名称
     */
    @ApiModelProperty("大屏文案名称")
    private String largeScreenCopywritingName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCopywritingDto that = (BffCopywritingDto) o;
        return largeScreenCopywritingCode == that.largeScreenCopywritingCode && largeScreenCopywritingName == that.largeScreenCopywritingName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), largeScreenCopywritingCode, largeScreenCopywritingName);
    }

}
